package com.pbking.facebook.delegates.feed
{
	import com.pbking.facebook.Facebook;
	import com.pbking.facebook.delegates.FacebookDelegate;

	import com.pbking.facebook.Facebook;
	import com.pbking.facebook.delegates.FacebookDelegate;

	/**
	 * @author sol wu
	 * @see http://wiki.developers.facebook.com/index.php/Feed.deactivateTemplateBundleByID
	 */
	public class DeactivateTemplateBundleByIDDelegate extends FacebookDelegate
	{
		public function DeactivateTemplateBundleByIDDelegate(facebook:Facebook, template_bundle_id:String)
		{
			super(facebook);
			if (template_bundle_id != null) fbCall.setRequestArgument("template_bundle_id", template_bundle_id);
			
			fbCall.post("facebook.feed.deactivateTemplateBundleByID");
		}
		
		override protected function handleResult(result:Object):void
		{
			success = result.toString() == "1";
		}
		
	}
}